<?php

class RedisBase 
{
    private static $redis;
    
    //返回redis实例
    protected static  function getReids(){
        if(!self::$redis){
            global $di;
            self::$redis=$di->get('redis');
        }
        return self::$redis;
    }
}

?>